public class ElectroWeaponEffect : WeaponEffect
{
	public override void Start()
	{
		base.Start();
		DisableControls(GameTopWindow.instance.electroPanel);
		InvokeRepeating("DamageFromElectro", 0f, 1f);
	}

	public override void End()
	{
		base.End();
		EnableControls(GameTopWindow.instance.electroPanel);
	}

	public override void OnDestroy()
	{
		base.OnDestroy();
		EnableControls(GameTopWindow.instance.electroPanel);
	}

	public void DamageFromElectro()
	{
		if (GameController.instance.curTypeGame != TypeGame.WalkingRobots)
		{
			humanoid.GetDamage((int)settings.effectPower, (int)settings.damageType, settings.killerID);
		}
	}
}
